export interface CreateRequestData {
  role_name: string
  is_enable: string
  menu_id: string
}
export interface UpdateRequestData {
  id: string
  role_name: string
  is_enable: string
  menu_id: string
}
export interface DeleteRequestData {
  id: string
}
export interface GetListsRequestData {
  /** 当前页码 */
  pageNum?: number
  /** 查询条数 */
  pageSize?: number
  /** 查询参数：接口类型 */
  listType?: string
  /** 查询参数：名称 */
  role_name?: string
}

export interface GetDetailRequestData {
  id: string
}

// 返回值

export type GetListsResponseData = ApiResponseData<{
  data: any
  total: number
}>

export type GetDetailResponseData = ApiResponseData<{
  id: string
  role_name: string
  is_enable: number
  enable_time: string
  menu_id: string
  menuIds: any
  menuItems: any
}>
export type UpdateResponseData = ApiResponseData<{
  id: string
  username: string
  nickname: string
  status: number
  role_ids: number
  phone: number
}>
